package com.conan.array.exer1;/** * @version 加油！！！ * @Description * @Author 谷藤新一GYC * @Date 2023/7/29-9:21 */public class ArrayTest5 {    public static void main(String[] args) {        int [] num = new int[10];        int sum = 0;        for(int i = 0;i < num.length;i++){            num[i] = (int) (Math.random()*90+10);            sum += num[i];            System.out.println(num[i]);        }        int Max = num[0];        int Min = num[0];        for(int i = 1;i < num.length;i++){            if(Max < num[i]){                Max = num[i];            }            if(Min > num[i]){                Min = num[i];            }        }        System.out.println("最大值："+Max);        System.out.println("最小值："+Min);        System.out.println("总和："+sum);        System.out.println("平均值："+sum/num.length);    }}   